#ifndef UOBJLoaderH
#define UOBJLoaderH

#include "UModel.h"
#include "UModelLoader.h"
#include "UFace.h"
#include <string>

class TOBJLoader: public TModelLoader {
	std::string GetNextBuf ( std::string& Line );
	void ProcessLine ( std::string& Line );
	TFace ProcessFaceArgument ( TFace AFace, const std::string& arg );

	std::vector<TVector> Vectors;
	std::vector<TVector> NVectors;
	std::vector<TVector> TexVectors;
	std::vector<TFace> Faces;
	public:
	TModel* loadModelFromStream(std::ifstream& stream);
	std::string getClassName() { return std::string("TOBJLoader");};
};

#endif
